package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayPassageAccountServiceApi;
import com.thb.pay.api.payment.vo.req.PayPassageAccountPageReq;
import com.thb.pay.api.payment.vo.req.PayPassageAccountReq;
import com.thb.pay.api.payment.vo.resp.PayPassageAccountVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class PayPassageAccountServiceApiFallbackFactory implements FallbackFactory<PayPassageAccountServiceApi> {


    @Override
    public PayPassageAccountServiceApi create(Throwable throwable) {
        return new PayPassageAccountServiceApi() {
            @Override
            public PageResult<PayPassageAccountVo> findPage(PayPassageAccountPageReq pageReq) {
                return null;
            }

            @Override
            public List<PayPassageAccountVo> findAllList() {
                return null;
            }

            @Override
            public List<PayPassageAccountVo> findListByPassageId(Long payPassageId) {
                return null;
            }

            @Override
            public void add(PayPassageAccountReq payPassageAccountReq) {

            }

            @Override
            public void update(PayPassageAccountReq payPassageAccountReq) {

            }


            @Override
            public PayPassageAccountVo getById(Long id) {
                return null;
            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}